<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../../config.inc.php");
$_LangPath = "usercredit_userpwd";
include_once(__Admin_Path."/logincheck.php");
include_once(__Language_Path."/selectlanguage_admin.php");

$_data["Force"] = trim($_data["Force"]);
$fp = @file(__Admintemplate_Path."/UserCredit/user_password.html");
$fp = implode("", $fp);
$fp = setHTMLCharset($fp);

$fp = str_replace("{Lang}", $_intLang, $fp);
$fp = str_replace("{Force}", $_data["Force"], $fp);
if($_data["Force"] == "Yes"){
	$fp = str_replace("{Account}", $_SESSION["Admin_Info"] -> Account, $fp);
	$fp = str_replace("{Name}", $_SESSION["Admin_Info"] -> Name, $fp);
}else{
	$fp = preg_replace("/<!-- @ Force Start @\/\/-->.+<!-- @ Force End @\/\/-->/s", "", $fp);
}

while(list($k, $v) = each($_strUserPWD)){
	$fp = str_replace("{".$k."}", $v, $fp);
}

//輸出
WebOutputHTML($fp, 1);
?>